# Template file for 'datcom'
pkgname=datcom
version=1.0
revision=1
hostmakedepends="gcc-fortran"
short_desc="Digital DATCOM"
maintainer="privatewright <privateercp@protonmail.com>"
license="Public Domain"
homepage="https://www.pdas.com"
distfiles="https://www.pdas.com/packages/${pkgname}.zip"
checksum=58a5b2c600de67b4cbc4408eca07891851c83ff36f4e3e0a4944aa5944ed9fe1

do_extract() {
	mkdir -p ${pkgname}
	bsdtar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}.zip" -C ${pkgname}
}

do_build() {
	gfortran -std=legacy ${pkgname}/datcom.f -o ${pkgname}/datcom
}

do_install() {
	vbin ${pkgname}/datcom
}
